﻿using System.Web.Mvc;

namespace ForumEngine.Routing
{
    public static class UrlHelperExtension
    {
        public static string RouteAction(this UrlHelper urlHelper, string application, string action, long id)
        {
            return urlHelper.RouteUrl(new {application, action, id});
        }

        public static string RouteAction(this UrlHelper urlHelper, string application, string action, long id, int page)
        {
            return urlHelper.RouteUrl(new { application, action, id, page });
        }
    }
}